#pragma once
#include <QtCore/QObject>
#include "Serializable.h"

class EquipmentModel :
	public Serializable
{
	Q_OBJECT
	Q_PROPERTY(QString Name READ Name WRITE setName)
	Q_PROPERTY(QString Reference READ Reference WRITE setReference)
	Q_PROPERTY(QString Value READ Value WRITE setValue)
	Q_PROPERTY(int Count READ Count WRITE setCount)

#pragma region Constructor

public:
	EquipmentModel(void);
	~EquipmentModel(void);

#pragma endregion

#pragma region Public Methods

public:
	bool Serialize(QDomDocument * doc, QDomElement * tag);
	bool Deserialize(QDomDocument * doc, QDomElement * tag);

#pragma endregion

#pragma region Properties and Fields

	Q_PROP_DECL(QString, Name)
	Q_PROP_DECL(QString, Reference)
	Q_PROP_DECL(QString, Value)
	Q_PROP_DECL(int, Count)

#pragma endregion

};

